package com.demo.service.impl;

import com.demo.mapper.AssignmentMapper;
import com.demo.service.AssignmentService;
import com.demo.utils.ResponseResult;
import com.demo.pojo.Assignment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: TLB
 * @Date: 2022/11/12 17:40
 */
@Service
public class AssignmentServiceImpl implements AssignmentService {

    @Autowired
    private AssignmentMapper assignmentMapper;
    @Override
    public ResponseResult addAssignment(Assignment assignment) {
        int i = assignmentMapper.insertAssignment(assignment);
        return ResponseResult.success("作业发布成功");
    }
}
